package cc.rengu.redp.bizimpl.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Tree<T> {

    private String id;

    private String channelType;

    private String key;

    private String icon;

    private String title;

    private String value;

    private String text;

    private String permission;

    private String type;

    private Integer order;

    private String path;

    private String component;

    private List<Tree<T>> children;

    private String parentId;

    private boolean hasParent = false;

    private boolean hasChildren = false;

    private String createTime;

    private String modifyTime;

    private String instId;

    private String orgCode;

    private String orgName;

    private String orgType;

    private String orgLevel;

    private String orgStatus;

    private String parentOrgCode;

    public void initChildren() {
        this.children = new ArrayList<>();
    }

}
